package com.liuzhu.chaoshikucungunli.model;

public class User {
    private long id;
    private String username;
    private String password;
    private String phone;
    private String role;
    private String company;
    private String avatar;
    private boolean notification;

    // 构造函数
    public User() {}

    public User(String username, String password, String phone) {
        this.username = username;
        this.password = password;
        this.phone = phone;
        this.notification = true; // 默认开启通知
    }
    public User(String username, String password, String phone, String role, String company) {
        this.company=company;
        this.role=role;
        this.username = username;
        this.password = password;
        this.phone = phone;
        this.notification = true; // 默认开启通知
    }

    // Getter和Setter方法
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public boolean isNotification() {
        return notification;
    }

    public void setNotification(boolean notification) {
        this.notification = notification;
    }
} 